package com.intretech.umsin.system.api;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.intretech.umsin.common.web.ApiResult;
import com.intretech.umsin.system.param.SysOperLogParam;
import com.intretech.umsin.system.vo.SysOperLogVo;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
* @version V1.0
* 操作日志记录: sys_oper_log 为其他服务提供内部调用接口 API.
* @InterfaceName: SysOperLogApi
* @Description: 操作日志记录:sys_oper_log 为其他服务提供内部调用接口 API.
* @author: 李启联
* @date:   2022-8-16 16:44:07
* @Copyright: Copyright (c) 2022
*/

public interface SysOperLogApi {

    @GetMapping("/system/sysoperlog/get/{id}")
    public ApiResult<SysOperLogVo> querySysOperLogById(@PathVariable("id") String id);

    @PostMapping("/system/sysoperlog/listByIds")
    public ApiResult<List<SysOperLogVo>> querySysOperLogByIds(@RequestBody List<String> ids);

    @PostMapping("/system/sysoperlog/page/{pageNo}/{pageSize}")
    public ApiResult<IPage<SysOperLogVo>> querySysOperLogForPage(@RequestBody SysOperLogParam params, @PathVariable("pageNo") Integer pageNo, @PathVariable("pageSize") Integer pageSize);

    @PostMapping("/system/sysoperlog/list")
    public ApiResult<List<SysOperLogVo>> querySysOperLogForList(@RequestBody SysOperLogParam params);

    @PostMapping("/system/sysoperlog/add")
    public ApiResult<SysOperLogVo> addSysOperLog(@RequestBody SysOperLogVo vo);

    @PostMapping("/system/sysoperlog/adds")
    public ApiResult<List<SysOperLogVo>> addsSysOperLog(@RequestBody List<SysOperLogVo> voList);

    @PutMapping("/system/sysoperlog/modify")
    public ApiResult<SysOperLogVo> modifySysOperLog(@RequestBody SysOperLogVo vo);

    @PutMapping("/system/sysoperlog/modifys")
    public ApiResult<List<SysOperLogVo>> modifysSysOperLog(@RequestBody List<SysOperLogVo> voList);

    @DeleteMapping("/system/sysoperlog/remove/{id}")
    public ApiResult<Void> removeSysOperLog(@PathVariable("id") String id);

    @DeleteMapping("/system/sysoperlog/removes")
    public ApiResult<Void> removesSysOperLog(@RequestBody List<String> ids);


}